﻿using System;
using System.Collections.Generic;

namespace SmartCommunity.Models;

/// <summary>
/// 社区
/// </summary>
public partial class CommunityEntity
{
    /// <summary>
    /// 社区ID
    /// </summary>
    public Guid CommunityId { get; set; }

    /// <summary>
    /// 社区名称
    /// </summary>
    public string CommunityName { get; set; } = null!;

    /// <summary>
    /// 负责人姓名
    /// </summary>
    public string? ManagerName { get; set; }

    /// <summary>
    /// 负责人电话
    /// </summary>
    public string? ManagerTel { get; set; }

    /// <summary>
    /// 成立日期 
    /// </summary>
    public DateOnly CreatedDate { get; set; }

    /// <summary>
    /// 是否作废
    /// </summary>
    public bool Disabled { get; set; }

    /// <summary>
    /// 备注说明
    /// </summary>
    public string? Remark { get; set; }

    /// <summary>
    /// 创建人
    /// </summary>
    public string CreatedBy { get; set; } = null!;

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreatedTime { get; set; }

    /// <summary>
    /// 修改人
    /// </summary>
    public string UpdatedBy { get; set; } = null!;

    /// <summary>
    /// 修改时间
    /// </summary>
    public DateTime UpdatedTime { get; set; }

    public virtual ICollection<AreaEntity> Areas { get; set; } = new List<AreaEntity>();
}
